package cn.yuanqiao.common.core.domain;

import cn.yuanqiao.common.annotation.IdAnnotation;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.context.annotation.Bean;

import java.util.Date;

public class BusinessActivity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @IdAnnotation
    private Long id;

    private Integer code;

    private String tableName;

    private String name;

    private String userName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date actionTime;

    private String dept;

    private Long daId;

    private Long userId;

    private Long deptId;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getActionTime() {
        return actionTime;
    }

    public void setActionTime(Date actionTime) {
        this.actionTime = actionTime;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public Long getDaId() {
        return daId;
    }

    public void setDaId(Long daId) {
        this.daId = daId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return "BusinessActivity{" +
                "id=" + id +
                ", code=" + code +
                ", tableName='" + tableName + '\'' +
                ", name='" + name + '\'' +
                ", userName='" + userName + '\'' +
                ", actionTime=" + actionTime +
                ", dept='" + dept + '\'' +
                ", daId=" + daId +
                ", userId=" + userId +
                ", deptId=" + deptId +
                '}';
    }
}
